package com.bbs.web.controller;

import com.bbs.domain.Zone;
import com.bbs.service.ZoneService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @ClassName ZoneController
 * @Description 板块区域
 * @Author geci
 * @Date 2019/9/23 12:12
 * @Version 1.0
 */

@RestController
@RequestMapping("/web/zone")
public class ZoneController {

    @Autowired
    private ZoneService zoneService;

    /**
     * 查询所有的板块区域信息
     * @return
     */
    @GetMapping("/findZoneList")
    public List<Zone> findZoneList(){
        return zoneService.findZoneList();
    }
}
